Skip to content

Instantly share code, notes, and snippets.

@hakkm
hakkm / thinkpad p14s gen5 amd.md
Last active May 25, 2026 14:52
My Search Collection about Thinkpad P14s gen 5 (AMD), Linux focused

Problems/Fixes

1. power drain in sleep mode

Potential sleep issues that may require BIOS updates.

Solution 1

s2idle sucks, but you can make it suck less if you do the kernel param acpi.ec_no_wakeup=1 (on the P14s Gen 5 AMD, at least). This results in a normal-ish power drain in sleep mode and the laptop no longer gets hot. I haven't got a hard number to give you, but it doesn't self-drain in several hours. Comment link: https://www.reddit.com/r/thinkpad/comments/1ex38yg/which_thinkpad_is_best_for_linux_t14s_gen_4_vs/

Solution 2

https://bbs.archlinux.org/viewtopic.php?pid=2195411#p2195411

@vector-10
vector-10 / notification-system-spec.md
Last active May 25, 2026 14:50
Technical Specification: Notification System for a Multi-channel, High-Reliability Notification Infrastructure at Scale

Overview

Cowrywise is a wealth management platform, enabling millions of Nigerians to take charge of their personal finances. This is done by providing tools to plan, save and invest online with ease. A system of this nature requires a robust and scalable notification system (SMS, Email, Push) delivering high-priority notifications like OTPs, withdrawal, deposit alerts and lower-priority ones like promotional campaigns,. All this while sorting out through the right channel, respecting user preferences and very importantly ensuring "at-least-once" delivery with idempotency to guarantee no duplicate sends to users.

Requirements

Functional Requirements

  • Multi-Channel Support
    • Emails(SendGrid), SMS(Twilio) and Push(FCM) Notifications
    • Pluggable architecture, Can switch to another provider without changing core business logic
  • Notification Prioritization
  • Handle and Deliver High priority notifications (OTP, 2FA, security alerts) over lower priority notifications (marketing campaings)
@CollinDewey
CollinDewey / main.cpp
Created July 16, 2025 18:27
Car Nano ATMEGA328P
#include <Arduino.h>
#include <TimerOne.h>
// Diagram ---------------------------------------------------------
// Logic Voltage (5V/3.3V)--------[resistor]----+----[Analog Read]
// |
// [Steering Wheel Buttons]
// |
// GND

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@dantetesta
dantetesta / Sistema de Detecção e Reconhecimento Facial.MD
Created December 1, 2025 10:53
Sistema de Detecção e Reconhecimento Facial

Documentação: Sistema de Detecção e Reconhecimento Facial

Autor: Dante Testa
Data: 29/11/2024
Versão: 1.0.0


Índice

@shuv0id
shuv0id / Miosevka.md
Last active May 25, 2026 14:46
Build plan and github workflow for Custom Iosevka Build with Nerd Font icons

This gist provides a custom Iosevka build plan along with a GitHub Actions workflow for building and patching the font with Nerd Font icons and all the required dependencies.

The build plan below was originally taken from this Reddit post with a few modifications to the original configuration.

(I call it Miosevka, though you can rename it however you want by modifying the provided build plan.)

[buildPlans.miosevka]
family = "Miosevka"
spacing = "normal"
@markasoftware
markasoftware / enterprise_token.rb
Last active May 25, 2026 14:38
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################